package stu.aistar.model.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@ExcelTarget("user")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
  @Excel(name = "序号", width = 10)
  private Integer id;

  @Excel(name = "用户名", orderNum = "0", width = 30)
  private String username;
  @Excel(name = "密码", orderNum = "1", width = 30)
  private String password;
  @Excel(name = "身份",replace ={"管理员_1", "用户_0"}, orderNum = "2", width = 30)
  private Integer power;
  @Excel(name = "姓名", orderNum = "3", width = 30)
  private String name;
  @Excel(name = "性别",replace = {"男_1", "女_0"},orderNum = "4", width = 30)
  private Integer sex;
  @Excel(name = "年龄", orderNum = "5", width = 30)
  private Integer age;
  @Excel(name = "手机号", orderNum = "6", width = 30)
  private String phone;
  @Excel(name = "邮箱", orderNum = "7", width = 30)
  private String email;
  @Excel(name = "会员",replace = {"是_1", "否_0"},orderNum = "8", width = 30)
  private Integer identity;

  private String other1;
  private String other2;
}

